import { PartnerModel } from "./partnerModel";

export class TeamModel {
    list: PartnerModel[]
    camp: PartnerModel[]
    pos: any
    campLvl: number
    constructor(opts: any = {}) {
        this.list = opts.list || new Array(10).fill(null)
        this.camp = opts.camp || new Array(50).fill(null)
        this.pos = opts.pos || null
        this.campLvl = opts.campLvl || 1
    }

    initPos = () => {
        this.pos = {}
        for (let i = 0; i < 10; i++) { 
            this.pos[i] = this.list[i]?.index         
        }
    }
}